from src.models.pal import PwPal


def search_service(pal_code):
    print("Searching for " + pal_code)
    # 查询数据
    pal = PwPal.query.filter_by(code='1').first()
    print(pal.code, pal.name)
